 $(window).load(function()
    {
    	var H = $('#nav').offset().top + 71;
//  	 console.log(H)
    	$(window).scroll(function()
        {
    	 var s = document.body.scrollTop;
    	if(s > H)
    	{ 
            $('#nav').css('position','fixed').css('width','100%').css('z-index','1000')
        }
    	else
    	{
    		 $('#nav').css('position','static')
    	}
    	
        })
    })